<template>
  <div class="tag1">
    <Layout>
      <div>
        <ol class="tag">
          <li>
            <span>衣</span>
            <Icon name="right"/>
          </li>
          <li>
            <span>食</span>
            <Icon name="right"/>
          </li>
          <li>
            <span>住</span>
            <Icon name="right"/>
          </li>
          <li>
            <span>行</span>
            <Icon name="right"/>
          </li>
        </ol>
      </div>
      <div class="createTag-wrapper">
        <button class="createTag" @click="createTag">新建标签</button>
      </div>
    </Layout>
  </div>
</template>

<script lang="ts">
import Layout from '@/components/Layout.vue';
import Icon from '@/components/icon.vue';

export default {
  name: 'labels',
  components: {Icon, Layout},
};
</script>

<style lang="scss" scoped>
.tag1 {
  background: #F5F5F5;
}

.tag {
  background: white;
  font-size: 16px;
  padding-left: 16px;

  > li {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e6e6e6;

    > .icon {
      width: 18px;
      height: 18px;
      color: #666;
      margin-right: 16px;
    }
  }
}

.createTag {
  background: #767676;
  color: white;
  border-radius: 4px;
  border: none;
  height: 40px;
  padding: 0 16px;

  &-wrapper {
    text-align: center;
    padding: 16px;
    margin-top: 44-16px;
  }
}

</style>